package com.ak.server.test.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ak.common.entity.AKResponse;
import com.ak.common.entity.QueryRequest;
import com.ak.common.entity.constant.ServerConstants;
import com.ak.common.entity.system.SystemUser;
import com.ak.server.test.service.fallback.UserServiceFallback;

/**
 * Feign客户端
 *
 * @author Vean
 */
@FeignClient(value = ServerConstants.AK_SERVER_SYSTEM, contextId = "userServiceClient", fallbackFactory = UserServiceFallback.class)
public interface IUserService {

    @GetMapping("user")
    AKResponse userList(@RequestParam("queryRequest") QueryRequest queryRequest, @RequestParam("user") SystemUser user);
}
